from collections import OrderedDict

favorite_languages = OrderedDict()

favorite_languages['dzc'] = 'python'
favorite_languages['djj'] = 'java'
favorite_languages['dyy'] = 'c'
favorite_languages['dzy'] = 'c++'

for name,language in favorite_languages.items():
    print(name.title() + "'s favorite language is "
          + language.title() + ".")

